#ifndef BUZZERCOMMANDER_H
#define BUZZERCOMMANDER_H

#include <QtGui/QMainWindow>
#include "ui_buzzercommander.h"
#include "SerialPort.h"

class BuzzerCommander: public QMainWindow {
Q_OBJECT

public:
	BuzzerCommander(SerialPort *sp, QWidget *parent = 0);
	~BuzzerCommander();

private:
	Ui::BuzzerCommanderClass ui;
	SerialPort *sp;
	bool portOpen;

private slots:
	void on_actionOpen_triggered(bool checked = false);
	void on_actionClose_triggered(bool checked = false);
	void on_actionExit_triggered(bool checked = false);
	void on_btnSend_clicked();
	void toggleSize();

public slots:
	void portOn();
	void portOff();
	void dataListener();
};

#endif // BUZZERCOMMANDER_H
